package cn.z2huo.knowledge.basic.exception.finallyy;

/**
 * <p>
 *
 * @author z2huo
 */
class FinallyThrowExceptionDemo {

    public static void main(String[] args) {
        try {
            System.out.println("try");
            int a = 1/0;
        } catch (Exception e) {
            System.out.println("catch");
            throw e;
        } finally {
            // 可以执行到
            System.out.println("finally");
        }
    }
}
